#include "Message.P2.QuotesDump.h"

namespace AlgoTrading
{
	namespace Messages
	{
		P2QuotesDump::P2QuotesDump(void)
			: RequestResponse(std::auto_ptr<PBServerMessage>(new PBServerMessage()))
		{
			quotesDump = requestResponse->MutableExtension(PBP2QuotesDump::requestResponse);
			requestResponse->set_type(PBRequestResponse_Type_PBP2QuotesDump);
		}

		P2QuotesDump::~P2QuotesDump(void)
		{
		}

		P2QuotesDump::P2QuotesDump(std::auto_ptr<PBServerMessage>& message)
			: RequestResponse(message)
		{
			quotesDump = requestResponse->MutableExtension(PBP2QuotesDump::requestResponse);
		}


		int P2QuotesDump::GetQuotesSize() const
		{
			return quotesDump->quotes_size();
		}

		::google::protobuf::int64 P2QuotesDump::GetQuote(int index) const
		{
			return quotesDump->quotes(index);
		}

		void P2QuotesDump::PushQuote(const ::google::protobuf::int64 quote)
		{
			quotesDump->add_quotes(quote);
		}

		RequestResponse::RequestResponseMessageType P2QuotesDump::GetRequestResponseMessageType() const
		{
			return RequestResponse::QUOTES_DUMP;
		}

	}
}
